package com.mrbeard.greenbroswer.entites;

/**
 * Created by 胡彬 on 2018/3/30.
 */
public class Device {

    private String id;
    private String imei;
    private String mac;
    private String version;
    private String osVersion;
    private String remark;
    private String alias;

    public Device() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getOsVersion() {
        return osVersion;
    }

    public void setOsVersion(String osVersion) {
        this.osVersion = osVersion;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Device device = (Device) o;

        if (!id.equals(device.id)) return false;
        if (!imei.equals(device.imei)) return false;
        if (!mac.equals(device.mac)) return false;
        if (!version.equals(device.version)) return false;
        if (!osVersion.equals(device.osVersion)) return false;
        if (!remark.equals(device.remark)) return false;
        return alias.equals(device.alias);

    }

    @Override
    public int hashCode() {
        int result = id.hashCode();
        result = 31 * result + imei.hashCode();
        result = 31 * result + mac.hashCode();
        result = 31 * result + version.hashCode();
        result = 31 * result + osVersion.hashCode();
        result = 31 * result + remark.hashCode();
        result = 31 * result + alias.hashCode();
        return result;
    }
}
